POST
/
api-cart
/
bill-to
/
cart
/
{cartId}
curl --request POST \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/cart/{cartId} \
  --header 'Content-Type: application/json' \
  --data '{
  "paymentMethod": "Visa Credit",
  "cardIdentifier": "1234",
  "amount": 149.99,
  "address": {
    "attention": "Leave at the back door.",
    "street1": "123 Main Street",
    "street2": "ABC Boulevard",
    "city": "Seattle",
    "state": "WA",
    "country": "United States of America",
    "zipCode": "10008-1234",
    "kind": "TBD",
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  }
}'
{
  "paymentMethod": "Visa Credit",
  "cardIdentifier": "1234",
  "amount": 149.99,
  "address": {
    "attention": "Leave at the back door.",
    "street1": "123 Main Street",
    "street2": "ABC Boulevard",
    "city": "Seattle",
    "state": "WA",
    "country": "United States of America",
    "zipCode": "10008-1234",
    "kind": "TBD",
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  },
  "billToId": 1,
  "cart": "5e5818a84d030c206b2ffb02",
  "_id": "5fee9d59f2f08a1b3cbdea08",
  "createdAt": "2020-12-31T02:09:53.914Z",
  "updatedAt": "2020-12-31T02:09:53.914Z"
}

Path Parameters

cartId
string
required
Required string length: 24

Body

application/json
paymentMethod
string
required
Required string length: 3 - 24
cardIdentifier
string
required
Required string length: 4
amount
number
required
Required range: x > 0.01
address
object
required

Response

200
application/json
Bill To For Shipment Created
paymentMethod
string
Required string length: 3 - 24
cardIdentifier
string
Required string length: 4
amount
number
Required range: x > 0.01
address
object
billToId
number
cart
string
_id
string
createdAt
string
updatedAt
string

Was this page helpful?